package com.bjpowernode.p2p.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.bjpowernode.p2p.mapper.loan.IncomeRecordMapper;
import com.bjpowernode.p2p.model.loan.BidInfo;
import com.bjpowernode.p2p.model.loan.IncomeRecord;
import com.bjpowernode.p2p.service.IncomeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * ClassName:IncomeRecordServiceImpl
 * Package:com.bjpowernode.p2p.service.impl
 * Description: 描述信息
 *
 * @date:2021/7/24 10:20
 * @author:动力节点
 */
@Component
@Service(interfaceClass = IncomeRecordService.class,version = "1.0-SNAPSHOT",timeout = 15000)
public class IncomeRecordServiceImpl implements IncomeRecordService {

    @Autowired
    private IncomeRecordMapper incomeRecordMapper;


    @Override
    public List<BidInfo> queryBidInfoByStatus() {

        return  null;
    }

    @Override
    public int addIncomeRecord(List<IncomeRecord> incomeRecords) {
        return incomeRecordMapper.insertListIncomeRecord(incomeRecords);
    }


}
